package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单钉钉消息通知记录对象 t_dingtalk_message
 * 
 * @author wuym
 * @date 2021-04-24
 */
public class TDingtalkMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 生产订单号 */
    @Excel(name = "生产订单号")
    private String orderNo;

    /** 生产订单行号 */
    @Excel(name = "生产订单行号")
    private String orderLine;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String goodNo;

    /** 存货名称 */
    @Excel(name = "存货名称")
    private String goodName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String category;

    /** 工序行号 */
    @Excel(name = "工序行号")
    private String workLine;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String workName;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private BigDecimal workNum;

    /** 操作人工号 */
    @Excel(name = "操作人工号")
    private String operationNo;

    /** 操作人姓名 */
    @Excel(name = "操作人姓名")
    private String operationName;

    /** 班组名称 */
    @Excel(name = "班组名称")
    private String teamName;

    /** 班长工号 */
    @Excel(name = "班长工号")
    private String teamLeader;

    /** 班长姓名 */
    @Excel(name = "班长姓名")
    private String teamLeaderName;

    /** 通知状态，0-待通知，1-已通知，3-已过期 */
    @Excel(name = "通知状态，0-待通知，1-已通知，3-已过期")
    private Integer status;
    /** 工单状态 */
    @Excel(name = "工单状态")
    private String workStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setOrderLine(String orderLine) 
    {
        this.orderLine = orderLine;
    }

    public String getOrderLine() 
    {
        return orderLine;
    }
    public void setGoodNo(String goodNo) 
    {
        this.goodNo = goodNo;
    }

    public String getGoodNo() 
    {
        return goodNo;
    }
    public void setGoodName(String goodName) 
    {
        this.goodName = goodName;
    }

    public String getGoodName() 
    {
        return goodName;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setWorkLine(String workLine) 
    {
        this.workLine = workLine;
    }

    public String getWorkLine() 
    {
        return workLine;
    }
    public void setWorkName(String workName) 
    {
        this.workName = workName;
    }

    public String getWorkName() 
    {
        return workName;
    }
    public void setWorkNum(BigDecimal workNum) 
    {
        this.workNum = workNum;
    }

    public BigDecimal getWorkNum() 
    {
        return workNum;
    }
    public void setOperationNo(String operationNo) 
    {
        this.operationNo = operationNo;
    }

    public String getOperationNo() 
    {
        return operationNo;
    }
    public void setOperationName(String operationName) 
    {
        this.operationName = operationName;
    }

    public String getOperationName() 
    {
        return operationName;
    }
    public void setTeamName(String teamName) 
    {
        this.teamName = teamName;
    }

    public String getTeamName() 
    {
        return teamName;
    }
    public void setTeamLeader(String teamLeader) 
    {
        this.teamLeader = teamLeader;
    }

    public String getTeamLeader() 
    {
        return teamLeader;
    }
    public void setTeamLeaderName(String teamLeaderName) 
    {
        this.teamLeaderName = teamLeaderName;
    }

    public String getTeamLeaderName() 
    {
        return teamLeaderName;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(String workStatus) {
        this.workStatus = workStatus;
    }

    public void copyWorkOrder(TWorkOrder order){
        this.orderNo = order.getOrderNo();
        this.orderLine = order.getOrderLine();
        this.goodNo = order.getGoodNo();
        this.goodName = order.getGoodName();
        this.workLine = order.getWorkLine();
        this.workName = order.getWorkName();
        this.workNum = order.getWorkNum();
        this.category = order.getCategory();
        this.operationName = order.getOperationName();
        this.operationNo = order.getOperationNo();
        this.teamLeader = order.getTeamLeader();
        this.teamLeaderName = order.getTeamLeaderName();
        this.teamName = order.getTeamName();
        this.workStatus = order.getWorkStatus();
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("orderLine", getOrderLine())
            .append("goodNo", getGoodNo())
            .append("goodName", getGoodName())
            .append("category", getCategory())
            .append("workLine", getWorkLine())
            .append("workName", getWorkName())
            .append("workNum", getWorkNum())
            .append("operationNo", getOperationNo())
            .append("operationName", getOperationName())
            .append("teamName", getTeamName())
            .append("teamLeader", getTeamLeader())
            .append("teamLeaderName", getTeamLeaderName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
